//
//  SLPhotoBrowserController.h
//  SLPhotoBrowser
//
//  Created by S_LINE on 2020/6/21.
//  Copyright © 2020 S_LINE. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "SLPhotoModel.h"

typedef NS_ENUM (NSInteger, SLPhotoBrowserType){
    SLPhotoBrowserType_URL,
    SLPhotoBrowserType_Image
};

NS_ASSUME_NONNULL_BEGIN

@interface SLPhotoBrowserController : UIViewController

/// 图片模型数组
@property (nonatomic, strong) NSMutableArray<SLPhotoModel *> *images;

/// 当前显示的图片index
@property (nonatomic, assign) NSUInteger currentIndex;

/// 返回事件回调
@property (nonatomic, copy) dispatch_block_t backActionBlock;

/// 是否可以编辑
@property (nonatomic, assign, getter=isRemoveable) BOOL removeable;

/// 照片被删除的回调
@property (nonatomic, copy) void(^photoRemovedCallBack)(NSInteger index);

- (instancetype)initWithBrowserType:(SLPhotoBrowserType)browserType;

@end

NS_ASSUME_NONNULL_END
